package org.grow.pretty.controller;

import org.grow.pretty.service.CodeGeneratorRService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: xwg
 * @CreateDate: 2022/5/30
 */

@RestController
@RequestMapping("/pretty/some")
public class SomeBillController {
    @Autowired
    private CodeGeneratorRService codeGeneratorRService;

    @GetMapping("/insert")
    public String insert(){
        return codeGeneratorRService.nextCode("Bi");
    }
}
